home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / lib / gcc-lib / ppc-amigaos / 2.95.1 / sys-include / powerup / ppcinline / timer.h < prev    next >
C/C++ Source or Header  |  2000-03-13  |  1KB  |  35 lines

  1. /* Automatically generated header! Do not edit! */
  2.  
  3. #ifndef _PPCINLINE_TIMER_H
  4. #define _PPCINLINE_TIMER_H
  5.  
  6. #ifndef __PPCINLINE_MACROS_H
  7. #include <powerup/ppcinline/macros.h>
  8. #endif /* !__PPCINLINE_MACROS_H */
  9.  
  10. #ifndef TIMER_BASE_NAME
  11. #define TIMER_BASE_NAME TimerBase
  12. #endif /* !TIMER_BASE_NAME */
  13.  
  14. #define AddTime(dest, src) \
  15.     LP2NR(0x2a, AddTime, struct timeval *, dest, a0, struct timeval *, src, a1, \
  16.     , TIMER_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  17.  
  18. #define CmpTime(dest, src) \
  19.     LP2(0x36, LONG, CmpTime, struct timeval *, dest, a0, struct timeval *, src, a1, \
  20.     , TIMER_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  21.  
  22. #define GetSysTime(dest) \
  23.     LP1NR(0x42, GetSysTime, struct timeval *, dest, a0, \
  24.     , TIMER_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  25.  
  26. #define ReadEClock(dest) \
  27.     LP1(0x3c, ULONG, ReadEClock, struct EClockVal *, dest, a0, \
  28.     , TIMER_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  29.  
  30. #define SubTime(dest, src) \
  31.     LP2NR(0x30, SubTime, struct timeval *, dest, a0, struct timeval *, src, a1, \
  32.     , TIMER_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  33.  
  34. #endif /* !_PPCINLINE_TIMER_H */
  35.